﻿@model IEnumerable<PeopleEntity.ViewNews>

@{
    ViewBag.Title = "AllNews";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>All News</h2>
    @foreach (var item in Model)
    {
        <p />
     
            <span class="news-date">@Html.DisplayFor(modelItem => item.Date)</span>
            <br />
           <span class="news-title">@Html.ActionLink(item.Title, "ViewNews", new { id = item.Id })</span>
            <br />
            <span class="news-content">@Html.DisplayFor(modelItem => item.Content)</span>
            <br />

    }
    <div>
    @Html.ActionLink("Back to main page", "Index", "Home")
</div>